package com.dog.modules.iot.mqtt.consumer.controller;


import com.dog.framework.core.constant.CleaningRedisKeyPrefixConst;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;



/**
 * @description: 设备发送的公共模块的指令
 * @author: lee
 */
@Slf4j
public class BaseCmdDispatcher {

    @Autowired
    public RedisTemplate<String, String> redisTemplate;

    public String getCurrentLoginUser(String uuid) {
        String userStr = redisTemplate.opsForValue().get(String.format(CleaningRedisKeyPrefixConst.ROBOT_LOGIN_USER, uuid));

        return null;
    }

    public String getUuidFromDeviceCode(String androidClient) {

        return androidClient;
    }

    public boolean isAndroidClient(String deviceCode) {
        return Boolean.TRUE;
    }


}
